package com.nwpu.coursesupport.view;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nwpu.coursesupport.entity.TaskSubmitResult;
import com.nwpu.coursesupport.entity.bean.Files;
import com.nwpu.coursesupport.enumeration.Status;
import com.nwpu.coursesupport.enumeration.TaskType;

public class LessonTaskMainDetailView{
	
	private Integer taskId;
    private String title;
    private TaskType type;
    private String description;
    private String requirement;
    private Files attachment;
    @JsonIgnore
    private String attachmentBytes;
    
    private String standardAnswer;
    @JsonIgnore
    private String answerAttachmentBytes;
    private Files answerAttachment;

	private int id;
	private int lessonId;//课堂
	private Status isVisible;
    private Status isAnswerVisible;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deadline;
    
    List<TaskSubmitResult> submits;

	public Integer getTaskId() {
		return taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public TaskType getType() {
		return type;
	}

	public void setType(TaskType type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getRequirement() {
		return requirement;
	}

	public void setRequirement(String requirement) {
		this.requirement = requirement;
	}

	public Files getAttachment() {
		return attachment;
	}

	public void setAttachment(Files attachment) {
		this.attachment = attachment;
	}

	public String getAttachmentBytes() {
		return attachmentBytes;
	}

	public void setAttachmentBytes(String attachmentBytes) {
		this.attachmentBytes = attachmentBytes;
	}

	public String getStandardAnswer() {
		return standardAnswer;
	}

	public void setStandardAnswer(String standardAnswer) {
		this.standardAnswer = standardAnswer;
	}

	public String getAnswerAttachmentBytes() {
		return answerAttachmentBytes;
	}

	public void setAnswerAttachmentBytes(String answerAttachmentBytes) {
		this.answerAttachmentBytes = answerAttachmentBytes;
	}

	public Files getAnswerAttachment() {
		return answerAttachment;
	}

	public void setAnswerAttachment(Files answerAttachment) {
		this.answerAttachment = answerAttachment;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	public Status getIsVisible() {
		return isVisible;
	}

	public void setIsVisible(Status isVisible) {
		this.isVisible = isVisible;
	}

	public Status getIsAnswerVisible() {
		return isAnswerVisible;
	}

	public void setIsAnswerVisible(Status isAnswerVisible) {
		this.isAnswerVisible = isAnswerVisible;
	}

	public Date getDeadline() {
		return deadline;
	}

	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}

	public List<TaskSubmitResult> getSubmits() {
		return submits;
	}

	public void setSubmits(List<TaskSubmitResult> submits) {
		this.submits = submits;
	}

	public int getLessonId() {
		return lessonId;
	}

	public void setLessonId(int lessonId) {
		this.lessonId = lessonId;
	}
	
}
